﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using InWare.InNutri.Presentation;

namespace InWare.InNutri.Presentation
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {        
        public MainWindow()
        {
            InitializeComponent();            
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            HistoriaClinicaWindow historiaClinicaWindow = new HistoriaClinicaWindow();
            historiaClinicaWindow.Show();
        }

        private void PacienteMenuItem_Click(object sender, RoutedEventArgs e)
        {
            //InNutriContext context = new InNutriContext();

            //PacienteWindow pacienteWindow = new PacienteWindow();

            //Paciente paciente = context.PacienteSet.First(p => p.IdPaciente == 1);

            //context.Detach(paciente);

            //pacienteWindow.DataContext = new PacienteViewModel(paciente);
            //pacienteWindow.Show();

        }

        private void PacienteListMenuItem_Click(object sender, RoutedEventArgs e)
        {
            //PacienteListWindow pacienteListWindow = new PacienteListWindow();
            //pacienteListWindow.DataContext = new PacienteListViewModel();
            //pacienteListWindow.Show();
        }
    }
}
